<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Migration_CreateTable_feedback extends CI_Migration
{
    public function up()
    {
        $this->dbforge->add_field('id');
        $this->dbforge->add_field(array(
            'feedback_content' => array('type' => 'TEXT'),
            'release_time'     => array('type' => 'DATETIME',),
        ));
        $this->dbforge->create_table('feedback');
    }

    public function down()
    {
        $this->dbforge->drop_table('feedback');
    }
} 